.class Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;
.super Ljava/lang/Object;
.source "SideNavCategoryAdapter.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->directDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

.field final synthetic val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    .prologue
    .line 367
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .registers 11
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "which"    # I

    .prologue
    .line 371
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 373
    :try_start_3
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v0, v0, Lcom/brixd/niceapp/model/AppRecommendModel;->downloadUrl:Ljava/lang/String;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/AppRecommendModel;->title:Ljava/lang/String;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    move-result-object v3

    const v4, 0x7f0c0062

    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "nice_apps_zuiapps"

    const/4 v5, 0x1

    invoke-static/range {v0 .. v5}, Lcom/brixd/niceapp/util/DownloadUtils;->startDownload(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V

    .line 375
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    move-result-object v0

    const v1, 0x7f0c0106

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V
    :try_end_30
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_30} :catch_31

    .line 386
    :goto_30
    return-void

    .line 376
    :catch_31
    move-exception v6

    .line 378
    .local v6, "e":Ljava/lang/Exception;
    :try_start_32
    new-instance v7, Landroid/content/Intent;

    invoke-direct {v7}, Landroid/content/Intent;-><init>()V

    .line 379
    .local v7, "intent":Landroid/content/Intent;
    const-string v0, "android.intent.action.VIEW"

    invoke-virtual {v7, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 380
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v0, v0, Lcom/brixd/niceapp/model/AppRecommendModel;->downloadUrl:Ljava/lang/String;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v7, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 381
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    move-result-object v0

    invoke-virtual {v0, v7}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_50
    .catch Ljava/lang/Exception; {:try_start_32 .. :try_end_50} :catch_51

    goto :goto_30

    .line 382
    .end local v7    # "intent":Landroid/content/Intent;
    :catch_51
    move-exception v0

    goto :goto_30
.end method
